package org.example.mapper;

import org.example.pojo.CommunityContent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhx
 * @since 2025-01-17
 */
@Repository
public interface CommunityContentMapper extends BaseMapper<CommunityContent> {

    List<CommunityContent> getAllContent(CommunityContent content);

    void likeContent(int contentId);

    List<CommunityContent> getContentByUserId(Integer userId);

    void unlikeContent(Integer contentId);

    void shareContent(Integer contentId);

    void unshareContent(Integer contentId);
}
